約 3,928,238 件
https://w.atwiki.jp/msi_wind/pages/27.html
Linux part Fedora 10 CDかUbuntu CDから起動 (他はテストしてません) マニュアルで新しいパーティションを "/" に "ext3" で作成 インストールする...... インストール完了したらターミナル開いてGrub bootloaderをカスタマイズする "su root" で"root"ユーザーに変更 "gedit /boot/grub/menu.lst" でgeditが起動して編集できます。 一番最後に以下を追加する事でGrubが Mac OS Xを見てくれるようになります。 "title Mac OSX Leopard root (hd0,1) savedefault makeactive chainloader +1" メモ Grubは最初のパーティションを0とカウントしますので二つ目のパーティションにMac OS X をインストールした場合"(hd0,1)になります。 分からない場合は"sudo fdisk -l" を実行する事でパーティション構成を確認できます。 Fedoara 10の場合 "vga=0x311"を "/boot/grub/grub.conf" のFedoara 10 の箇所の最後に追加する事で "plymouth" というちょっとかっこいい起動画面を有効にする事が出来ます。 おまけ: Windows ではおなじみのRarファイルを使いたい場合 "unrar"をインストールしましょう 次をダウンロードしてインストール http //www.rarlab.com/download.htmi ターミナルで次を実行 "cd /tmp wget http //www.rarlab.com/rar/rarlinux-3.6.0.tar.gz tar -zxvf rarlinux-3.6.0.tar.gz cd rar cp rar unrar /bin" ¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥ 最後に時刻設定に関して XPはハードウェアの時刻をローカルと認識する反面OS XはUTCと認識します。 またUbuntuやFedoara 10ではインストール時に選択出来ます。(忘れた場合は時計を右クリックで設定クリックしたらいじれます) 以上の特性上Mac OS Xの時刻をUTCに変更してあげてLinuxもUTCに変更してあげるとWind U100を時差ぼけから救う事が出来ます。 ターミナルを開き root に移動する "nano /sbin/localtime-toggle" と入力↑ 以下をコピペ↓ #!/bin/sh to_utc() { echo "localtime-toggle Toggling to UTC." date `date -u +%m%d%H%M%Y` } to_localtime() { echo "localtime-toggle Toggling to localtime." date -u `date +%m%d%H%M%Y` } trap to_localtime; exit term to_utc { while true; do sleep 86400; done; } wait CTRL + O エンターを押す CTRL + V 次に以下を入力: chmod +x /sbin/localtime-toggle もう一度以下のコマンドで新しいファイルを作成: nano /System/Library/LaunchDaemons/org.osx86.localtime-toggle.plist 内容は以下をコピーアンドペースト: ?xml version="1.0" encoding="UTF-8"? !DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http //www.apple.com/DTDs/PropertyList-1.0.dtd" plist version="1.0" dict key Label /key string org.osx86.localtime-toggle /string key Program /key string /sbin/localtime-toggle /string key KeepAlive /key true/ key RunAtLoad /key true/ key HopefullyExitsFirst /key true/ /dict /plist CTRL + O エンターを押す CTRL + V 再起動する これでMac OS Xがハードウェアの時刻をローカルとして認識する ######################################################## もっと簡単に時刻を合わせる方法↓ Windows でregedit/HKLM/CurrentControlSet/ControlSet/Timeinformation のところに新しくRealTimeIsUniversalのDwordを作成する。値を1に変更する。 更にLinuxでsudo nano /etc/default/rcS を起動してUTC=をyesにする。
https://w.atwiki.jp/pclinuxtips/pages/16.html
ubuntu 10.04 LTSをPXEネットワークインストールする インストールイメージ送り出し側サーバの設定 dhcpサーバ構築 tftpサーバ構築 イメージ配置 apache公開ディレクトリ/var/www/html/iso/ubuntu1004_server_x64/を作成。インストールCD isoイメージの内容を、上のディレクトリにそっくりコピーする。ネットワークインストール時に、レポジトリを 192.168.0.1, /is/ubuntu1004_server_x64を指定する。 ブート設定 # mkdir /tftpboot/ubuntu1004_server_x64 # cd /tftpboot/ubuntu1004_server_x64 # wget http //ftp.riken.go.jp/Linux/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/netboot.tar.gz # tar -zxvf netboot.tar.gz # cd .. # cp -a ubuntu1004_server_x64/ubuntu-installer . 補足 # cat ubuntu-installer/amd64/pxelinux.cfg/default pxelinux.cfg/default # vi pxelinux.cfg/default または(b) # cp ubuntu-installer/amd64/pxelinux.cfg/default pxelinux.cfg/(target mac) TIPS ubuntu 10.04 LTS amd64 Server desktop -- NG, 画面が表示されない alternate -- OK, インストール後、grub2 edir, xorg.confを作成 Ubuntu 10.04 amd64 のインストールメモ CPU Athlon 3400e Chipset SB600, RS690M-Radeon X1200 amd64版 ■desktop インストール不可。画面が表示されない ■alternate (1)textモード、または、grubに 『nomodeset』を追加しないと画面が正常に表示されない。 (2)ブート時にescキーを押し、grbubメニューを表示させる。 (3)F6キーを押し、編集モードに以降する。 (4)インストール時は、行の最右に「nomodeset」を追加、ctrl+x でブートする。 (5)その後のブート時はlinux行に、「nomodeset」を追加しブートする。 (6)インストール完了後は、GRUB2の編集を行う。 手順は/etc/default/grub を編集して GRUB_CMDLINE_LINUX に nomodeset を追加し、sudo update-grub を実行する (7)起動すると、640x480でしか表示できない。/etc/X11/xorg.confを新規作成し、再起動すると、1280x1024まで表示可能になる。以下は一例です。 Section "Device" Identifier "Configured Video Device" Driver "vesa" EndSection Section "Monitor" Identifier "Configured Monitor" EndSection Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" EndSection ■server (1)textモード、または、grubに 『nomodeset』を追加しないと画面が正常に表示されない。 (2)ブート時にescキーを押し、grbubメニューを表示させる。 (3)F6キーを押し、編集モードに以降する。 (4)インストール時は、行の最右に「nomodeset」を追加、ctrl+x でブートする。 (5)その後のブート時はlinux行に、「nomodeset」を追加しブートする。 (6)インストール完了後は、GRUB2の編集を行う。 手順は/etc/default/grub を編集して GRUB_CMDLINE_LINUX に nomodeset を追加し、sudo update-grub を実行する
https://w.atwiki.jp/linuxjapanwiki/pages/205.html
コメントログ作成 - 名無しさん (2020-06-28 09 05 57) リンク先のGithubのページ、アカウントごと消えてるよ - 名無しさん (2022-07-13 04 02 01)
https://w.atwiki.jp/robot/pages/27.html
起動するサービスの設定 chkconfig kudzu off chkconfig smartd off chkconfig sendmail off などオフにしました.(だって起動が遅くなるし!) chkconfig --list chkconfig vsftpd on ネットワークの設定 /etc/sysconfig/network-scripts/ifcfg-eth0 一台目(ヒカル) DEVICE= eth1 BOOTPROTO= none ONBOOT= yes TYPE= Ethernet USERCTL= no IPADDR= 192.168.100.25 GATEWAY= 192.168.90.1 NETMASK= 255.255.255.0 NETWORK= 192.168.90.0 BROADCAST= 192.168.90.255 もう一台(じゅんいち)は IPADDR= 192.168.100.26
https://w.atwiki.jp/linuxjapanwiki/pages/71.html
Upper Linux Xfce
https://w.atwiki.jp/linuxwotamesu/pages/27.html
CentOS のインストール後(シリアルコンソール接続後)の設定。 /etc/grub.conf [root@vbox01 ~]# cat /etc/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/vg_vbox01-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=5 #splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu serial --unit=0 --speed 115200 title CentOS (2.6.32-220.el6.i686) root (hd0,0) kernel /vmlinuz-2.6.32-220.el6.i686 ro root=/dev/mapper/vg_vbox01-lv_root rd_NO_LUKS rd_LVM_LV=vg_vbox01/lv_swap rd_NO_MD quiet rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=jp106 rd_LVM_LV=vg_vbox01/lv_root LANG=ja_JP.UTF-8 rd_NO_DM console=tty0 console=ttyS0,115200 initrd /initramfs-2.6.32-220.el6.i686.img [root@vbox01 ~]# /etc/inittab [root@vbox01 /]# cat /etc/inittab # inittab is only used by upstart for the default runlevel. # # ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # System initialization is started by /etc/init/rcS.conf # # Individual runlevels are started by /etc/init/rc.conf # # Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf # # Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf, # with configuration in /etc/sysconfig/init. # # For information on how to write upstart event handlers, or how # upstart works, see init(5), init(8), and initctl(8). # # Default runlevel. The runlevels used are # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) # id 3 initdefault [root@vbox01 /]# /etc/sysconfig/init [root@vbox01 ~]# cat /etc/sysconfig/init # color = new RH6.0 bootup # verbose = old-style bootup # anything else = new style bootup without ANSI colors or positioning BOOTUP=color # column to start [ OK ] label in RES_COL=60 # terminal sequence to move to that column. You could change this # to something like tput hpa ${RES_COL} if your terminal supports it MOVE_TO_COL= echo -en \\033[${RES_COL}G # terminal sequence to set color to a success color (currently green) SETCOLOR_SUCCESS= echo -en \\033[0;32m # terminal sequence to set color to a failure color (currently red) SETCOLOR_FAILURE= echo -en \\033[0;31m # terminal sequence to set color to a warning color (currently yellow) SETCOLOR_WARNING= echo -en \\033[0;33m # terminal sequence to reset to the default color. SETCOLOR_NORMAL= echo -en \\033[0;39m # Set to anything other than no to allow hotkey interactive startup... PROMPT=yes # Set to yes to allow probing for devices with swap signatures AUTOSWAP=no # What ttys should gettys be started on? ACTIVE_CONSOLES=$(echo /dev/tty[12] dev/ttyS0 ) # Set to /sbin/sulogin to prompt for password on single-user mode # Set to /sbin/sushell otherwise SINGLE=/sbin/sushell [root@vbox01 ~]# /etc/securetty [root@vbox01 ~]# cat /etc/securetty console vc/1 vc/2 tty1 tty2 ttyS0 [root@vbox01 ~]# /etc/sysconfig/network-scripts/ifcfg-eth0 [root@vbox01 /]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE= eth0 NM_CONTROLLED= yes ONBOOT=yes HWADDR=08 00 27 8F CB 36 TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME= System eth0 UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 [root@vbox01 /]# /etc/sysconfig/network-scripts/ifcfg-eth1 [root@vbox01 /]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE= eth1 NM_CONTROLLED= yes ONBOOT=yes HWADDR=08 00 27 92 1B 0F TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME= System eth1 UUID=9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04 [root@vbox01 /]# /etc/sysconfig/network [root@vbox01 /]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=vbox01 [root@vbox01 /]# /etc/resolv.conf [root@vbox01 /]# cat /etc/resolv.conf ; generated by /sbin/dhclient-script search flets-east.jp nameserver 192.168.1.1 [root@vbox01 /]# /etc/hosts html2 plugin Error このプラグインで利用できない命令または文字列が入っています。 /etc/host.conf [root@vbox01 /]# cat /etc/host.conf multi on [root@vbox01 /]# /etc/nsswitch.conf [root@vbox01 /]# cat /etc/nsswitch.conf # # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry [NOTFOUND=return] means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Valid entries include # # nisplus Use NIS+ (NIS version 3) # nis Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # db Use the local database (.db) files # compat Use NIS on compat mode # hesiod Use Hesiod for user lookups # [NOTFOUND=return] Stop searching if not found so far # # To use db, put the db in front of files for entries you want to be # looked up first in the databases # # Example #passwd db files nisplus nis #shadow db files nisplus nis #group db files nisplus nis passwd files shadow files group files #hosts db files nisplus nis dns hosts files dns # Example - obey only what nisplus tells us... #services nisplus [NOTFOUND=return] files #networks nisplus [NOTFOUND=return] files #protocols nisplus [NOTFOUND=return] files #rpc nisplus [NOTFOUND=return] files #ethers nisplus [NOTFOUND=return] files #netmasks nisplus [NOTFOUND=return] files bootparams nisplus [NOTFOUND=return] files ethers files netmasks files networks files protocols files rpc files services files netgroup nisplus publickey nisplus automount files nisplus aliases files nisplus [root@vbox01 /]# ここで編集
https://w.atwiki.jp/linux2ch/pages/120.html
テキストエディタ全般に関するFAQ テキストエディタ全般に関するFAQ Linux で広く利用可能なテキストエディタは? Emacs vi jed nano mcedit(Midnight Commander) デスクトップで一般的に利用できるテキストエディタは何ですか? GNOMEデスクトップ環境 Gedit Leafpad Geany Medit Bluefish KDE デスクトップ環境 2ch Linux板スレッド Linux で広く利用可能なテキストエディタは? Emacs と vi がその代表です。が、どちらも操作に慣れが必要。 Emacs EmacsFAQsを参照してください。 vi UNIX で標準的に使われるテキストエディタ。編集操作にモードを使用し、慣れると高速な編集が可能。設定ファイルの編集には vi が使われることが多い。 welcome home vim online (vi のクローン) http //www.vim.org/ jed jed は高速で軽快な高機能エディタです。 S-Lang という一見するとC言語風なforth系マクロ言語(ニュースリーダslrnにも採用されている)で機能拡張できます。 デフォルトではEmacs風の設定になってますが、Windows や KDE/Gnome/OpenOffice などと同様(Ctrl-C、Ctrl-Vでコピー ペーストなど)のカスタマイズも用意されています。その場合は、 () = evalfile ("cua"); の1行を ~/.jedrc に加えてください(無い場合は作成します)。 nano nano はメールソフトpine(現在はAlpine)に付属するpicoの流れをくむ CUI のエディタで、画面下に操作手順(ctrlキー)が常に表示されているなど、初心者向けのとっ付き易さが特徴です。多くの Linux ディストリビューションに標準添付されています。 設定ファイル ~/.nanorc を編集することでキーワードの色分け表示などのカスタマイズもできます。.nanorc が無い場合は、 $ zcat /usr/share/doc/nano/examples/nanorc.sample.gz ~/.nanorc とすれば雛形のサンプルがホームディレクトリにコピーされますので、編集して使ってください。 読み込み専用(ビューモード)で開くには nano -v ファイル名 とします。 mcedit(Midnight Commander) mcedit は,2画面ファイラーの Midnight Commander に内蔵されているエディタです。コンソールアプリですがマウスでも操作できます。 キーワードの色分け表示にも対応しています。キーワードファイルは /usr/share/mc/syntax にあります。 デスクトップで一般的に利用できるテキストエディタは何ですか? デスクトップで一般的に利用できるテキストエディタには、次のアプリケーションがあります。 GNOMEデスクトップ環境 Gedit GNOME標準のテキストエディタです。見かけはシンプルですが、Python言語を用いたプラグインによって機能拡張でき、プログラミングなどさまざまな用途に使えます。 Leafpad Leafpad は Windows のメモ帳に似た、Gtk+ベースのシンプルなエディタです。lessコマンドのように標準入力から読むこともできるので、テキストビューアとしても便利です。Xfce4に添付されている Mousepad は Leafpad をベースにしています。 Geany Geany は高速で軽量なIDEです。Gtk+ベースのエディタとしてはスクロール等が高速で、プログラミング以外の用途でも広く使えます。 Medit Medit はプログラミング向けのプラグインが用意された高機能エディタです。 Bluefish Bluefish はGtk+ベースのHTMLエディタで、HTML以外にもさまざまな言語の編集に対応しています。 KDE デスクトップ環境 KEdit、Kate、KWrite がその代表です。 2ch Linux板スレッド テキストエディタを使い込め http //pc11.2ch.net/test/read.cgi/linux/1140059703/ エディタ論争 http //hibari.2ch.net/test/read.cgi/linux/1190047625/ gedit -gnomeテキストエディタ- http //pc11.2ch.net/test/read.cgi/linux/1167062466/ マイナーエディタnanoについて語るスレ!!!! http //pc11.2ch.net/test/read.cgi/linux/1126268711/ 【高速】Geany【エディタ】 http //pc11.2ch.net/test/read.cgi/linux/1231664485/
https://w.atwiki.jp/akinobu1217/pages/7.html
ログを監視するプログラム http //www.atmarkit.co.jp/flinux/rensai/root04/root04a.html
https://w.atwiki.jp/slash/pages/414.html
Linuxの初歩的なセキュリティを設定します #contentsx suコマンドの利用者制限 suコマンドは一般ユーザーがスーパーユーザー(root)の権限を取得できるコマンドです rootのパスワードを知っていれば誰でもrootになることが出来てしまい、セキュリティ上あまり好ましくありません そこでsuコマンドを利用できるユーザーを限定するように設定を行います ファイル/etc/login.defsに以下を追記します SU_WHEEL_ONLY yes /etc/pam.d/suの下記行、先頭の # を削除する #auth required /lib/security/$ISA/pam_wheel.so trust use_uid wheelグループにsu可能ユーザーを追加するここではコマンド操作でユーザーをグループに登録する方法を記載しますhogeというユーザーをグループに追加します usermod -G wheel hoge rootログインを無効にする ssh接続しログインする際にrootでのログインを無効化します。root権限で操作を行う場合は、一般ユーザーでログイン後suコマンドでrootになり操作します /etc/ssh/sshd_confファイルを編集し、下記の設定を行います PermitrootLogin no ログインユーザーの指定 アカウントを作成したユーザー全員がサーバに対しログインする必要はないでしょう。 例えばメールしか利用しないユーザーなどはサーバにログインする必要はありません ログインしないユーザーはログインシェルを/sbin/nologonに変更し、ログインできないように変更します 作成済みユーザーのシェルを変更するには usermod -s /bin/nologon (ユーザー名)
https://w.atwiki.jp/mymemoana/pages/20.html
chmodについて書かれたページ 2つのファイルを連結する cat file1 file2 file1の中身をfile2の末尾に付け足す